<template>
	<view class="pages">
		<view class="top">
			<u-navbar title="人员列表" :is-back="false" title-color="#ffffff" :autoBack="false" background="none"
				:border-bottom="false" />
			<view class="divs">
				<u-image src="@/static/image/tabbar/contactsHL.png" border-radius="50%" width="50px" height="50px" />
				<view class="right">
					<span>李耀平</span>
					<span>手机号：13545039020</span>
				</view>
				<u-image @click="msgBtn" width="20px" style="position: absolute; right: 10px; top: 10px" height="20px"
					src="@/static/image/msg.svg" />
			</view>
		</view>
		<view class="nav">
			<view class="inputs" style="width: calc(100% - 50px)">
				<u-icon name="search" size="32" />
				<u-input style="margin-left: 10px" placeholder="请输入人员号码查询" />
			</view>
			<u-image style="margin-left: 10px" border-radius="6px" width="50" height="50" class="navBtn"
				src="@/static/image/navBtn.svg" />
		</view>
		<view class="center">
			<view class="list">
				<view class="item">
					<view class="left">
						<u-image width="30px" height="30px" border-radius="50%" src="@/static/image/usertest1.svg" />
						<span>巡检群组</span>
					</view>
					<u-icon name="arrow-down" color="#59B7FF" size="32" />
				</view>
				<view class="level" style="width: 100%">
					<u-image style="margin-right: 10px" width="25px" height="25px" border-radius="50%"
						src="@/static/image/tabbar/contactsHL.png" />
					<span>曾亚进</span>
					<span>（15908693596）</span>
				</view>
				<view class="level" style="width: 100%">
					<u-image style="margin-right: 10px" width="25px" height="25px" border-radius="50%"
						src="@/static/image/tabbar/contactsHL.png" />
					<span>余子康</span>
					<span>（15848965428）</span>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// searchImg: r("./img/search.svg"),
			};
		},
		methods: {
			msgBtn() {
				uni.$u.route("/pages/Notice/Notice");
			},
		},
	};
</script>

<style scoped lang="scss">
	/deep/ body,
	uni-page-body {
		background-color: #f9f9f9;
		height: 100%;
	}

	.pages {
		display: flex;
		flex-direction: column;
		position: relative;

		.top {
			display: flex;
			flex-direction: column;
			width: 100%;
			height: 120px;
			background-image: linear-gradient(to top right, #004eea, #2a78ff);
			padding: 10px;

			.divs {
				display: flex;
				flex-direction: row;
				background: #ffffff;
				padding: 20px;
				border-radius: 6px;
				position: absolute;
				width: calc(100% - 20px);
				top: 80px;

				.right {
					display: flex;
					flex-direction: column;
					margin-left: 10px;
					line-height: 23px;

					span:nth-child(1) {
						font-weight: 550;
					}

					span:nth-child(2) {
						color: #979797;
					}
				}
			}
		}

		.nav {
			margin-top: 50px;
			padding: 10px;
			display: flex;
			flex-direction: row;
			align-items: center;

			.inputs {
				display: flex;
				flex-direction: row;
				align-items: center;
				background-color: #ffffff;
				padding: 0 5px;

				border-radius: 6px;
			}
		}

		.center {
			display: flex;
			flex-direction: column;
			padding: 0 10px;

			.list {
				display: flex;
				flex-direction: column;
				background-color: #ffffff;
				padding-bottom: 20px;

				.item {
					display: flex;
					flex-direction: row;
					align-items: center;
					border-bottom: 1px solid #ebf5ff;
					justify-content: space-between;
					padding: 10px;

					.left {
						display: flex;
						flex-direction: row;
						align-items: center;

						span {
							margin-left: 10px;
						}
					}
				}

				.level {
					display: flex;
					flex-direction: row;
					align-items: center;
					padding: 10px 20px 0 20px;

					span:nth-child(3) {
						color: #979797;
					}
				}
			}
		}
	}
</style>